package com.ss.android.wenda.answer.detail2;

import android.view.View;

import com.ss.android.article.base.app.AppData;
import com.ss.android.article.base.feature.model.Article;
import com.ss.android.article.share.e.b;
import com.ss.android.article.share.entity.a;
import com.ss.android.common.callback.CallbackCenter;
import com.ss.android.model.BaseArticle;

final class an implements b {
    private final NewAnswerDetailFragment a;

    an(NewAnswerDetailFragment arg1) {
        this.a = arg1;

    }

    public final boolean a(a arg5, View arg6, com.ss.android.article.share.c.a arg7) {
        boolean v1 = true;
        boolean v2 = false;
        if(arg5 != null) {
            switch(arg5.e) {
                case 1: {
                    label_66:
                    NewAnswerDetailFragment.f(this.a).a(1);
                    return false;
                }
                case 2: {
                    label_61:
                    NewAnswerDetailFragment.f(this.a).a(2);
                    label_6:
                    v1 = false;
                    return false;
                }
                case 3: 
                case 4: {
                    label_70:
                    NewAnswerDetailFragment.f(this.a).a(3);
                    return false;
                }
                case 12: {
                    label_53:
                    this.a.report("pgc_button");
                    return false;
                }
                case 13: {
                    Article v2_1 = this.a.mArticle;
                    if(v2_1 != null) {
                        NewAnswerDetailFragment v3 = this.a;
                        String v0 = v2_1.userRepin ? "unfavorite_button" : "favorite_button";
                        v3.a(v0, ((BaseArticle)v2_1));
                        this.a.o();
                        return v1;
                    } else {
                        return v1;
                    }
                }
                case 14: {
                    int v0_1 = !AppData.isNightMode() ? 1 : 0;
                    this.a.mAppData.aE();
                    CallbackCenter.notifyCallback(com.ss.android.j.b.callbackTypeNightModeChanged, new Object[0]);
                    NewAnswerDetailFragment v2_2 = this.a;
                    String v0 = v0_1 != 0 ? "click_to_night" : "click_to_day";
                    v2_2.report(v0);
                    if(arg7 == null) {
                        return v1;
                    }

                    arg7.f();
                    arg7.e();
                    return v1;
                }
                case 15: {
                    this.a.report("display_setting");
                    return false;
                }
                case 16: {
                    this.a.report("report_button");
                    this.a.n();
                    return v1;
                }
            }

            return false;





        }

        return v2;
    }
}

